from decoder import type
from register_file import *


def WB(wb: bit_64, rd, job: type, rf: registers_file):
    if job.wb:
        rf.ports_in(rd, wb.val)
#        print("WB: x%d = %d" % (rd, wb.val))
#    else:
#        print("WB: NOP")
